// TODO 简单的参考样例

import request from '@/utils/request.js'

export function demoGet(params) {
  return request({
    url: '/demo/get',
    params,
  })
}

export function demoPost(data) {
  return request({
    url: '/demo/post',
    method: 'post',
    data,
  })
}

export function demoPostJson() {
  return request({
    url: '/demo/post/json',
    headers: { 'Content-Type': 'application/json' },
    isRequest: true,
    method: 'post',
  })
}
